package edu.sctu.nieyu.day20150510.functioncall;

import edu.sctu.nieyu.day20150510.functioncall.TextOne;
import edu.sctu.nieyu.day20150510.functioncall.TextThree;

/**
 * Created by user01 on 2015/5/10.
 */
public class TextTwo {

        public int sum = 0;
        public TextThree getMessage(TextOne textone){

            TextThree textThree = new TextThree();

            for (int i = 0; i <textone.number ; i++) {
                sum+=i;
            }

            textThree.number = sum;
            return textThree;

        }
    }

